package it.trio.monopoly.domain;

import javax.swing.text.html.MinimalHTMLWriter;

public class TaxSquare extends Square {
	public static String SQUARE_NAME = "TaxSquare";

	public TaxSquare() {
		super(SQUARE_NAME);
	}

	@Override
	public void onLanding(Player p) {
		int taxAmount = calcTax(p.getNetWorth());
		p.debit(taxAmount);
	}
	
	public int calcTax(int netWorth) {
		// TODO implement business rule
		return 200;
	}
}
